package com.txc.cloud.auth.common.config;

import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Component;

/**
 * bean配置
 *
 * @ClassName: BeanConfig
 * @Author: TXC
 * @Date: 2022-08-08 21:20
 **/
@Component
public class BeanRegistrar {
    @Bean
    public PasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }
}
